// store/mutations.js
export default {
  setReviewList(state, data) {
    state.reviewList = data.items;
    state.listTotal = data.total;
  },

  setReviewerList(state, reviewerList) {
    state.reviewerList = reviewerList;
  },

  setStatics(state, reviewStatic) {
    state.total = reviewStatic.total;
    state.finish = reviewStatic.finish;
    state.todayTotal = reviewStatic.todayTotal;
    state.todayFinish = reviewStatic.finishToday;
    state.reviewNumSeven = reviewStatic.finishSeven;
  },

  setUndoList(state, data) {
    state.undoList = data;
    if (state.undoList == null) {
      state.undoList = [];
    }
  },
};
